
//extern unsigned char LATD;
//extern unsigned char TRISD;

int main()
{

	int & myLATD = (int &)(*((int*)0xBF8860E0));

    myLATD = 10;

	//int* platd = (int*)0xBF8860E0;
	//int* ptrisd = (int*)0xBF8860C0;
	//int &myLATD = (int&)(*((int*)0xBF8860E0));

	//*ptrisd = 0x00;
	//
	//forever loop
	//	int j = 0;
	//	//*platd = i++;
	//	myLATD = i++;
	//	while  ( j <= 20000 ) loop
	//		j++;
	//	end loop
	//	
	//	//*p1 = i;
	//end loop




 //   int j=0;
	//long i = 0;
	//long q = 0;
	//int* aADDR = (int*)0xBF8860E0;
	//int &myLATD = (int&)(*((int*)0xBF8860E0));
	//int* p2 = (int*)&LATD;
	//// int &r2= LATD;


	//TRISD = 0x00;

	//forever loop
	//	i = 0;
	//	q = 0;

	//	while ( q  < 0 ) loop
	//		q++;
	//		while  ( i <= 200000 ) loop
	//			i++;
	//		end loop
	//	end loop

	//	LATD = j++;
	//	*p2 = j++;
	//	myLATD = j++;
	//	*aADDR = j++;
	//	//j = j + 1;
	//end loop

	return 0;
}
